package com.neu.beilian.controller;


import com.neu.beilian.domain.bo.pwdlogin_Bo;
import com.neu.beilian.domain.vo.pwdlogin_Vo;
import com.neu.beilian.service.IUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 陈鲲鹏
 * @since 2025-05-07
 */
@Api(tags = "用户登录接口")
@RestController
@RequestMapping("/openapi/user")
public class UserController {

    @Resource
    private IUserService userService;

    @ApiOperation("登录接口")
    @PostMapping("/pwdlogin")
    public pwdlogin_Vo pwdlogin(@RequestBody pwdlogin_Bo pwdloginBo, HttpServletRequest request) {
        return userService.pwdlogin(pwdloginBo, request);
    }



}
